package com.example.aaaexemplos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class ListActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		this.setContentView(R.layout.activity_list);

		ListView lvItems = (ListView) this.findViewById(R.id.lvItems);

		lvItems.setAdapter(new PersonListAdapter(this));
		// TODO subistituir a linha de cima por
		// lvItems.setAdapter(new PersonCursorAdapter(this));
	}
}
